package com.bojiu.lawsearch.lawsearch.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * @author: afdiao
 * @Date：2020/4/8 21:40
 * @Description:
 */
@ApiModel(value = "微信商品",description = "用户需要购买的商品")
@Table(name = "wxgoods")
@Data
public class WxGoods {

    @ApiModelProperty(value = "商品id",required = false)
    @Column(name = "id")
    private Integer id;

    @ApiModelProperty(value = "商品价格",required = false)
    @Column(name = "price")
    private Integer price;

    @ApiModelProperty(value = "商品有效期",required = false)
    @Column(name = "time")
    private Integer time;

    /**
     * 1 会员商品
     */
    @ApiModelProperty(value = "商品类型",required = false)
    @Column(name = "type")
    private Integer type;

    @ApiModelProperty(value = "商品说明",required = false)
    @Column(name = "message")
    private String message;
}
